﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace G.Service.API.Request.User
{
    public class LoginRequest : BaseRequest<Response.BaseResponse<Domain.User.UserInfo>>
    {
        public string Email { get; set; }

        public string Password { get; set; }

        public LoginRequest()
            : base("login")
        {
            base.Path = string.Format("{0}/UserService.ashx", APIConfig.BaseUrl);
        }

        public override void GetParameters(System.Collections.Generic.Dictionary<string, string> dic)
        {
            dic.Add("email", Email);
            dic.Add("pwd", Password);
        }
    }
}
